import React,{Component} from 'react';
import Top from '../top/top';
import Nav from '../nav/nav';
import Home from '../home/home';
import Hot from '../hot/hot';
import Search from '../search/search';
import {
  Route
} from 'react-router-dom';
export default class Index extends Component {
    render(){
        return (
            <div className="index-box">
                <Top />
                <Nav />
                <Route path='/index/home' exact component={Home}/>
                <Route path='/index/hot' component={Hot}/>
                <Route path='/index/search' component={Search}/>  
            </div>
        )
    }
}